package vn.lumi.smarthome.network;

public abstract class AppMsg extends Message {
	protected int user_id = 0;
	protected int session_id = 0;
	
	public AppMsg(int cmd_id, int uid, int sid){
		super(cmd_id);
		user_id = uid;
		session_id = sid;
	}
	public AppMsg(int cmd_id, int len, int uid, int sid){
		super(cmd_id, len);
		user_id = uid;
		session_id = sid;
	}
	
	public int getUid(){
		return user_id;
	}
	
	public int getSid(){
		return session_id;
	}
	
	public abstract byte[] generateByteArray();
}
